ModifyMachineConfig
Description
modify the baseline check policy application configuration of host assets, that is, set whether the specified baseline check policy is applied to the specified host assets.
Request Method
POST
Request Path
/apsara/route/aegis/ModifyMachineConfig
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
Type | BODY | string | No | No sample value for this parameter. | type, the system specifies the parameters. Value: hc_switch, indicating the baseline check policy switch. |
Target | BODY | string | No | No sample value for this parameter. | Specify the host asset and describe it in JSON format. For details, see the request example. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
Config | BODY | string | No | No sample value for this parameter. | policy configuration information. Enter the baseline check policy ID in JSON format, for example, {"strategyId":15161}. |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestId | string | no demo value | request ID. |
Example
Successful Response example
{
"RequestId":"no demo value"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}